<?php
class Solicitudes_Form_Extensionfinanciacion extends Form_Cna {
	
		
	public function __construct($options = null) {
		parent::__construct($options);
	}
	
	public function init() {
	    $this->setName ( 'extfinanciacion' );
		$this->setMethod("POST");
        
		$array_elements[] = new Zend_Form_Element_Hidden("codproceso");
		$array_elements[] = new Zend_Form_Element_Hidden("codfinextension");
		$array_elements[] = new Zend_Form_Element_Hidden("codseccionlista");
                
		$element = new Zend_Form_Element_Text('ano');
		$element->setLabel('Año :');
        $element->addValidator('digits');
        $element->setAttrib("size", 7);
        $element->setRequired(true);
        $array_elements[] = $element;
                
		$element = new Zend_Form_Element_Text('proyectos');
		$element->setLabel('Número de proyectos :');
        $element->addValidator('digits');
        $element->setAttrib("size", 7);
        $element->setRequired(true);
        $array_elements[] = $element;
		
		$element = new Zend_Form_Element_Text('fpropia');
		$element->setLabel('Financiación propia :');
        $element->addValidator('digits');
//        $element->setAttrib("size", 9);
        $element->setRequired(true);
        $array_elements[] = $element;
		
		$element = new Zend_Form_Element_Text('fnacional');
		$element->setLabel('Financiación nacional :');
        $element->addValidator('digits');
//        $element->setAttrib("size", 9);
        $element->setRequired(true);
        $array_elements[] = $element;
		
		$element = new Zend_Form_Element_Text('finternacional');
		$element->setLabel('Financiación internacional:');
        $element->addValidator('digits');
//        $element->setAttrib("size", 9);
        $element->setRequired(true);
        $array_elements[] = $element;
		
		$element = new Zend_Form_Element_Submit ( 'btnSubmit' );
		$element->setValue('Guardar');
		$element->setLabel("Guardar");
		$element->setAttrib("class", "iceCmdBtn");
		$array_elements[] = $element;
		
		$this->addElements ($array_elements);
		$this->loadTableDecorators();
	}
	
}